<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
?>
<!DOCTYPE html>
<html>
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php if (isset($title)) echo $title; ?>
        </title>
        <?php
        echo $this->Html->meta('icon');

        echo $this->Html->css('cake.generic');
        echo $this->Html->css('default');
        echo $this->fetch('meta');
        echo $this->fetch('css');
        echo $this->fetch('script');
        ?>
    </head>
    <body>
        <div id="container">
            <?php
            if (isset($header)) {
                ?>
                <div id="header">
                    <div class="header_top">
                        <div class="header_top_inner">
                            <div class="select_city">
                                <select>
                                    <option value="1">Hà Nội</option>
                                    <option value="2">TP Hồ Chí Minh</option>
                                    <option value="3">Thành phố khác</option>
                                </select>
                            </div>
                            <div class="deal">
                                <a class="deal_today" href="<?php echo Router::url(array('controller' => 'Home', 'action' => 'todayProduct')); ?>">Deal hôm nay</a>
                                <a class="deal_recent" href="<?php echo Router::url(array('controller' => 'Home', 'action' => 'recentProduct')); ?>">Deal gần đây</a>
                            </div>
                            <div class="float_right">
                                <ul>
                                    <li class="sign_in"><a href="">Đăng nhập</a></li>
                                    <li class="sign_up"><a href="">Đăng ký</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="header_center">
                        <div class="logo"></div>
                        <div class="search"></div>
                    </div>
                    <div class="header_bottom">
                        <div class="category">
                            <ul class="menu">
                                <li><a href="google.com">Trang chủ</a></li>
                                <li><a href="#">Giới thiệu</a></li>
                                <li><a href="#">Thời trang nam</a>
                                    <ul class="submenu">
                                        <li><a href="#">Đồ lót</a></li>
                                        <li><a href="#">Xuân hè</a></li>
                                        <li><a href="#">Thu đông</a></li>
                                        <li><a href="#">Công sở</a></li>
                                    </ul>
                                </li>
                                <li><a href="#">Thời trang nữ</a>
                                    <ul class="submenu">
                                        <li><a href="#">Đồ lót</a></li>
                                        <li><a href="#">Xuân hè</a></li>
                                        <li><a href="#">Thu đông</a></li>
                                        <li><a href="#">Công sở</a></li>
                                    </ul>
                                </li>
                                <li><a href="#">Giày dép</a></li>
                                <li><a href="#">Túi xách</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <?php
            }
            ?>
            <div id="content">

                <?php echo $this->Session->flash(); ?>

                <?php echo $this->fetch('content'); ?>
            </div>
            <div id="footer">

            </div>
        </div>
    </body>
</html>
